package org.jeecg.modules.storage.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.storage.entity.BussProductStorage;
import org.jeecg.modules.storage.entity.BussProductStorageDetail;
import org.jeecg.modules.storage.vo.BussProductStoragePageVo;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 成品入库单
 * @Author: jeecg-boot
 * @Date:   2024-07-23
 * @Version: V1.0
 */
public interface IBussProductStorageService extends IService<BussProductStorage> {

	/**
	 * 分页
	 * @param page
	 * @param queryWrapper
	 * @return
	 */
	public IPage<BussProductStoragePageVo> pageList(Page<BussProductStoragePageVo> page, QueryWrapper<BussProductStoragePageVo> queryWrapper);

	/**
	 * 添加一对多
	 *
	 * @param bussProductStorage
	 * @param bussProductStorageDetailList
	 */
	public void saveMain(BussProductStorage bussProductStorage,List<BussProductStorageDetail> bussProductStorageDetailList) ;
	
	/**
	 * 修改一对多
	 *
   * @param bussProductStorage
   * @param bussProductStorageDetailList
	 */
	public void updateMain(BussProductStorage bussProductStorage,List<BussProductStorageDetail> bussProductStorageDetailList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
